package com.test.study.impl;

import com.test.study.anno.RpcService;
import com.test.study.api.IHelloService;
import com.test.study.pojo.User;

@RpcService(className=IHelloService.class,ver="v2.0")
public class HelloService2Impl implements IHelloService {

	@Override
	public void save(User user) {
		System.out.println("【v2.0】"+user.getName()+"   "+user.getAge());
	}

	@Override
	public String sayHello(String name) {
		System.out.println("sayHello【v2.0】 has invoked by rpc");
		return "【v2.0】 sayHello,"+name;
	}

}
